package com.lbl.repository;

import com.lbl.dataObject.ProductInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by 李柏霖
 * 2020-10-09 21:34
 * 继承JpaRepository这个接口，就具备了CRUD操作
 * //主键是String类型，所以填String
 */
public interface ProductInfoRepository extends JpaRepository<ProductInfo, String> {

    List<ProductInfo> findByProductStatus(Integer productStatus);

}
